import Vue from 'vue'
import Router from 'vue-router'

//导入组件
import Content from "../components/Content";
import Main from "../components/Main";

Vue.use(Router)

export default new Router({
  routes: [
    {
      // 路由路径
      path: '/content',
      //名字，自己取(可省略)
      name: 'content',
      //跳转组件
      component: Content
    },
    {
      // 路由路径
      path: '/Main',
      //名字，自己取(可省略)
      name: 'Main',
      //跳转组件
      component: Main
    }
  ]
})
